<html><head><title>CreateWater</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">CreateWater()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#3A3966"><b>CreateWater</b></font>(#Camera, x, y, z, Transparency, Flags)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>


Creates a water plane at the given position. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Camera</i></td>
<td width="90%"> 
The camera to use. 

</td></tr>
<tr><td><i>x, y, z</i></td>
<td> 
The absolute coordinates where the water plane has to be created. 

</td></tr>
<tr><td><i>Transparency</i></td>
<td> 
Sets the whole water transparency, from 0 (fully opaque) to 255 (transparent). 

</td></tr>
<tr><td><i>Flags</i></td>
<td> 
Can be a combination of the following constants: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_World_WaterMediumQuality</font>: medium quality (default).
  <font color="#924B72">#PB_World_WaterLowQuality</font>   : low quality, which means less polygons (but faster rendering).
  <font color="#924B72">#PB_World_WaterHighQuality</font>  : high quality, which means more polygons (but slower rendering).
  <font color="#924B72">#PB_World_WaterCaustics</font>     : Enable the water caustics effects, which are small patterns created by the light on the water surface.
  <font color="#924B72">#PB_World_WaterSmooth</font>       : Enable smooth wave transition.
  <font color="#924B72">#PB_World_WaterFoam</font>         : Enable foam effect, which affect underwater objects when viewed out of the water plane.
  <font color="#924B72">#PB_World_WaterSun</font>          : Enable sun reflection on water. To control the sun position and color, use <a href="sun.html">Sun()</a>.
  <font color="#924B72">#PB_World_UnderWater</font>        : Activate an underwater effect, to have opaque underwater.
  <font color="#924B72">#PB_World_WaterGodRays</font>      : Activate sun god rays rendering when being underwater. <font color="#924B72">#PB_World_WaterSun</font> has to be specified.
</font></pre>

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>See Also</b></p><blockquote>

<a href="freewater.html">FreeWater()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=convertworldtolocalposition.html>ConvertWorldToLocalPosition()</a> - <a href="index.html">Engine3D Index</a> - <a href="enableworldcollisions.html">EnableWorldCollisions()</a> -><br><br>

</body></html>